<template>
  <div>
    <h1><slot></slot></h1>

    <module-mutations1>通过 commit 访问 mutations</module-mutations1>
    <module-mutations2>mutations → 组件的 methods</module-mutations2>
  </div>
</template>

<script>
import ModuleMutations1 from './ModuleMutations1.vue'
import ModuleMutations2 from './ModuleMutations2.vue'

export default {
  name: 'ModuleMutations',
  components: {
    ModuleMutations1,
    ModuleMutations2
  }
}
</script>
